package service;

import java.rmi.RemoteException;

import webservices.HealthCareServerProxy;

public class ViewDoctorList
{

	public String[] getDoctors(String username, String special){
	String[] doctors= null;
	HealthCareServerProxy proxy = new HealthCareServerProxy();

try {
	String doclist = proxy.getDocList(username, special);
	if(!doclist.isEmpty())
	{
		doctors = doclist.split("\\$");
		System.out.println("doctors inside doclist" + doctors);
		}
} catch (RemoteException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}

return doctors;
}
}
